<!DOCTYPE HTML>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <META HTTP-EQUIV="pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
    <META HTTP-EQUIV="expires" CONTENT="0">
    <title></title>
    <script type="text/javascript" src="../../js/commonCss.js"></script>
    <link rel="stylesheet" type="text/css" href="../../styles/common.css" />
    <style>
        a.red {
            color: red;
        }
        a.green {
            color: #51a351;
        }
    </style>
</head>
<body>
<form class="form-inline definewidth m20 " role="form" id="filterForm">
    <div class="form-group w200 mb10">
        <div class="input-group">
            <div class="input-group-addon">项目编号</div>
            <input type="text" name="projectCode" class="form-control" id="projectCode" placeholder="" value="">
        </div>
    </div>
    <div class="form-group w200 mb10">
        <div class="input-group">
            <div class="input-group-addon">项目名称</div>
            <input type="text" name="projectName" class="form-control" id="projectName" placeholder="" value="">
        </div>
    </div>
    <div class="form-group w200 mb10">
        <div class="input-group">
            <div class="input-group-addon">项目状态</div>
            <select name="projectStatus" class="form-control" id="projectStatus" >
            </select>
        </div>
    </div>
    <div class="form-group w200 mb10">
        <div class="input-group">
            <div class="input-group-addon">项目类型</div>
            <select name="projectType" class="form-control" id="projectType" >
            </select>
        </div>
    </div>
    <span id="hideGroup" style="display: none">
        <div class="form-group w200 mb10">
                <div class="input-group">
                    <div class="input-group-addon">预立日期</div>
                    <input type="text" class="form-control" value="" id="establishDateStart">
                </div>
            </div>
            <div class="form-group w200 mb10">
                <div class="input-group">
                    <div class="input-group-addon">至</div>
                    <input type="text" class="form-control" value="" id="establishDateEnd">
                </div>
            </div>

            <div class="form-group w200 mb10">
                <div class="input-group">
                    <div class="input-group-addon">签订日期</div>
                    <input type="text" class="form-control" value="" id="singDateStart">
                </div>
            </div>
            <div class="form-group w200 mb10">
                <div class="input-group">
                    <div class="input-group-addon">至</div>
                    <input type="text" class="form-control" value="" id="singDateEnd">
                </div>
            </div>

            <div class="form-group w200 mb10">
                <div class="input-group">
                    <div class="input-group-addon">客户名称</div>
                    <input type="text" name="customerName" class="form-control" id="customerName" placeholder="" value="">
                </div>
            </div>
            <div class="form-group w200 mb10">
                <div class="input-group">
                    <div class="input-group-addon">销售人员</div>
                    <input type="text" name="saleName" class="form-control" id="saleName" placeholder="" value="">
                </div>
            </div>
            <div class="form-group w200 mb10">
                <div class="input-group">
                    <div class="input-group-addon">销售部门</div>
                    <input type="text" name="saleOrg" class="form-control" id="saleOrg" placeholder="" value="">
                </div>
            </div>
            <div class="form-group w200 mb10">
                <div class="input-group">
                    <div class="input-group-addon">合同类别</div>
                    <!--<input type="text" name="contractType" class="form-control" id="contractType" placeholder="" value="">-->
                    <select name="contractType" id="contractType" class="form-control input-sm w300">
                    </select>
                </div>
            </div>
            <div class="form-group w200 mb10">
                <div class="input-group">
                    <div class="input-group-addon">合同名称</div>
                    <input type="text" name="contractName" class="form-control" id="contractName" placeholder="" value="">
                </div>
            </div>
            <div class="form-group w200 mb10">
                <div class="input-group">
                    <div class="input-group-addon">项目经理</div>
                    <input type="text" name="managerName" class="form-control" id="managerName" placeholder="" value="">
                </div>
            </div>
    </span>

    <div class="form-group w200 mb10">
        <button id="search" type="button" class="btn btn-primary">查询</button>
        <button type="button" class="btn btn-info" id="groupShow">更多</button>
        <button type="button" class="btn btn-info" id="groupHide" style="display: none">收起</button>
        <button type="reset" class="btn btn-success">清空</button>
    </div>

    <input type="text" name="groupValue" class="hide" id="groupValue" placeholder="" value="">
    <br/>
    <div class="form-group">
        <button type="button" class="btn btn-primary" onclick="groupBy('all')">全部汇总</button>
        <button type="button" class="btn btn-primary" onclick="groupBy('org')">按销售汇总</button>
        <button type="button" class="btn btn-primary" onclick="groupBy('manager')">按交付汇总</button>
        <button id="export" type="button" class="btn btn-primary" data-loading-text="Loading..." >导出</button>
    </div>
</form>


<div class="definewidth">
    <table id="table" class="table table-bordered table-hover m10"></table>
</div>

<script type="text/javascript" src="../../js/commonJs.js"></script>
<script type="text/javascript" src="../../js/jquery.formHelp.js"></script>
<script type="text/javascript" src="../../js/FileSaver.min.js"></script>
<script type="text/javascript" src="../../js/tableExport.min.js"></script>
<script type="text/javascript" src="list.js"></script>
<script type="text/javascript" src="../../assets/js/bui.js"></script>
<script type="text/javascript" src="../../assets/js/config-min.js"></script>
<script type="text/javascript">
    BUI.use('common/page');
</script>
<script type="text/javascript">
    document.onkeydown=function(event){
        var e = event || window.event || arguments.callee.caller.arguments[0];
        if(e && e.keyCode==13){ // enter 键
            document.getElementById('search').click();
            return false;
        }
    };
</script>
</body>
</html>